package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pjnkj
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Widget对象", description="")
public class Widget extends Model<Widget> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "控件名称")
    private String name;

    @ApiModelProperty(value = "是什么控件类型（链接控件类型表）")
    private String type;

    @ApiModelProperty(value = "转移给哪个controller对象处理(第一次以及js以后调用)")
    private String controller;

    @ApiModelProperty(value = "转移给哪个method方法处理(第一次)")
    private String method;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
